package edu.java.lectures.lec12.threads.synchronization.estatic;

public class MyClassCounterReader extends Thread {

    public MyClassCounterReader(String name) {
	super(name);
    }

    @Override
    public void run() {
	while (true) {

	    int counter = MyClass.getCounter();
	    System.out.println(getName() + " reads count: " + counter);
	    // counter++;
	    // System.out.println(getName() + " updates count: " + counter);
	    // MyClass.setCounter(counter);
	}
    }
}
